(Fwindow_end): Call move_it_past_eol only if
authorGerd Moellmann <gerd@gnu.org>
Thu, 1 Mar 2001 19:31:06 +0000 (19:31 +0000)
committerGerd Moellmann <gerd@gnu.org>
Thu, 1 Mar 2001 19:31:06 +0000 (19:31 +0000)
ending up on a partially visible line.

src/window.c

index 71e490724b61ac16d60f7b1d9193d6cee4889d4c..b02cc6b7969c66cf494691dcf9dbb77f4e553a85 100644 (file)
@@ -930,7 +930,8 @@ if it isn't already recorded.")
       
       start_display (&it, w, startp);
       move_it_vertically (&it, window_box_height (w));
-      move_it_past_eol (&it);
+      if (it.current_y < it.last_visible_y)
+       move_it_past_eol (&it);
       value = make_number (IT_CHARPOS (it));
       
       if (old_buffer)